package com.xqboss.apps.dto.equipment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * @author Trent
 * @date 2023/8/17
 */
@Data
@ApiModel
public class EquipmentAttrPointRatioDto {

    @ApiModelProperty(value = "基础点数",required = true)
    @NotNull(message = "基础点数不能为空")
    @Min(value = 4, message = "基础点数至少为4点")
    private Integer point;

    @ApiModelProperty(value = "几率",required = true)
    @NotNull(message = "触发几率")
    @DecimalMax(value = "1.00", message = "基础点数触发范围为：1% - 100%")
    @DecimalMin(value = "0.01", message = "基础点数触发范围为：1% - 100%")
    private BigDecimal ratio;
}
